# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo05
# Description:
# Author:       98745
# Date:         2019/3/7
#-------------------------------------------------------------------------------

import re
m=re.match('[ab][cd][ef][gh]','aceg')
print(m.group())
m=re.match('[ab][cd][ef][gh]','adeh')
print(m.group())
m=re.match('[ab][cd][ef][gh]','acegh')
print(m)
m=re.match('ab[cd][ef][gh]','abceh')
print(m.group())
print(m)
m=re.match('abcd|efgh','efgh')
print(m.group())
print(m)
